home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_004 / mycli / poster < prev   
Text File  |  1992-05-06  |  5KB  |  90 lines

  1. Article 1380 of net.micro.amiga:
  2. Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site well.UUCP
  3. Posting-Version: version B 2.10.2 9/18/84; site 3comvax.UUCP
  4. Path: well!ptsfa!qantel!lll-crg!ucdavis!ucbvax!decvax!decwrl!sun!idi!oliveb!3comvax!mykes
  5. From: mykes@3comvax.UUCP (Mike Schwartz)
  6. Newsgroups: net.micro.amiga
  7. Subject: MyCLI - CLI/Terminal program
  8. Message-ID: <314@3comvax.UUCP>
  9. Date: 31 Dec 85 09:15:18 GMT
  10. Date-Received: 3 Jan 86 11:43:40 GMT
  11. Distribution: net
  12. Organization: 3Com Corp; Mountain View, CA
  13. Lines: 1367
  14.  
  15. I have been coding like a madman the last few weekends, and here is my latest
  16. project, MyCLI.  MyCLI is a replacement for the existing AmigaDos CLI.  It
  17. does have a few bugs in it, which I will work out, but it works so well, I
  18. use it all the time.  I figure it might help some of you out there who might
  19. be doing similar things.
  20.  
  21.  
  22. MyCLI tutorial.
  23.    MyCLI is a pretty basic CLI-style interface with a built-in terminal
  24. mode for connecting to other computers.  The basic CLI commands
  25. are cd, chdir, copy, date, define, def, del, dir, erase, endcli, help,
  26. makedir, md, newcli, online, offline, rename, ren, prompt,
  27. setcomment, terminal, time, type, and whatis.
  28.  
  29. MyCLI has two different types of batch modes, MyCLI style, and CLI style.
  30. These are differentiated by dot extensions of .bat and .cli.  ".bat" files
  31. are simply commands that MyCLI accepts.  ".cli" files are files containing
  32. CLI commands, and that under CLI are invoked by typing execute <whatever>.cli.
  33. When you type a command to MyCLI that is not built-in, MyCLI looks first in
  34. the current directory for the filename (first token on command line) with
  35. the .bat extension, and executes it if it finds it (no parameters yet).
  36. If not found, MyCLI looks for the .cli file of the same name and uses the
  37. Execute function to do a "execute filename.cli parameters".  If neither
  38. type of batch file is found, then MyCLI tries to execute the filename as
  39. a program file.  MyCLI executes a batch file "df0:autoexec.bat" each time
  40. it is invoked, which is useful for automatically configuring MyCLI to suit
  41. your style.
  42.  
  43. MyCLI also allows you to define up to 20 commands for the function keys and
  44. shifted function keys.  You define a function key using the define or def
  45. command.  To define F1 to mean the dir command, type "def f1 dir".  To define
  46. F1 to compile a c program, type "def f1 make cprogram" or whatever.  To 
  47. undefine a function key, type "def f1" with no definition.  Once a function
  48. key is defined, your command is just a keystroke away.  It is useful to
  49. use the autoexec.bat batch file (shades of msdos) to define a set of function
  50. keys at startup.  F11 through F20 are the shifted function keys.
  51.  
  52.    MyCLI also features a terminal mode featuring ANSI compatibility.  This
  53. terminal mode feature allows for communications with hosts like Vaxs or
  54. BBSs and includes ASCII file transfer capabilities.  To enter terminal mode,
  55. type "terminal" or "online".  In terminal mode, all of your keystrokes are
  56. echoed to the serial port.  If you don't see what you are typing (i.e.
  57. the host you are connected to does not echo back your keystrokes), you can
  58. hit ^E (ctrl-e) to toggle local echoing.  This feature is useful when one
  59. MyCLI is connected to another via Modems.  
  60.  
  61.    Anytime you are in terminal mode, you can hit ^C to re-enter command 
  62. mode.  In command mode, you will be allowed to enter one command, and then
  63. you will go back into terminal mode.  From command mode, the "type" command
  64. will begin an ASCII file transmission out the serial port.  ^C followed by
  65. "capture <filename>" will begin an ASCII file capture (for collecting articles
  66. off of ARPAnet or USENET).  I use UNIX ED to collect source code on the 3Com
  67. Vax, along with the type command.  To terminate receive of an Ascii file,
  68. ^C then "capture".  Capture is a toggle command.
  69.  
  70.  
  71.  
  72. Notes:
  73.  
  74.    Programs like AmigaDos ED run concurrently when in terminal mode.  They
  75. will freeze until you hit ^C.  You must have Run and Execute in your C:
  76. directory (I like mine on Ram Disk -> ram:).  I intend to add Xmodem and
  77. better copy and dir command syntax.  Right now you have to specify explicit
  78. source and destinations - no wildcards or pattern matching allowed.  Also,
  79. there aren't a whole lot of comments, except in the area where I am currently
  80. working.  This is done to reduce compile time (don't have to read in the
  81. comments), though I normally like to document quite a bit.  Also, right
  82. now the terminal mode is set to 1200 baud in initialize() near the end,
  83. so change it to whatever.  I will be adding a phone directory and modem
  84. defaults in the future.
  85.  
  86. Please mail me bug reports if you are so inclined, and I will get to them
  87. right away.  I will also be posting future versions, as they are ready.
  88.  
  89. --------------------------------cut here-------------------------------------
  90.